#App information
app:
  papi:
    api_storage_path:
      - /home/lighttpd/sand/api-storage
      - /home/lighttpd/dev/api-storage

    api_root_path:
      - /home/lighttpd/sand/api-root
      - /home/lighttpd/dev/api-root

    api_path:
      - /home/lighttpd/sand/api
      - /home/lighttpd/dev/api

jenkins:
  slave_env:
      API_ENV: dev
      API_PATH: /home/lighttpd/dev/api
      API_STORAGE_PATH: /home/lighttpd/dev/api-storage
      API_URL: api-dev.jobstreet.com
      MEMCACHED_SERVER1: papi-1-dev.jobstreet.com
      PAPI_LOCAL_DOMAIN: papi-1-dev.jobstreet.com
      SERVER_URL: tick.jobstreet.com
      WEB_PATH: /home/lighttpd/dev/api-root

#Vhost information
vhost:
  papi:
    -
      name: papi-sand
      host_header: .sand.jobstreet.com
      document_root: /home/lighttpd/sand/api-root
      additional_config: |
        url.rewrite-once = (
          "^/monitor(.*)" => "v/index.php/monitor$1",
          "^/(v[^/\?]*)/$" => "$1/doc/swagger.html",
          "^/(v[^/\?]*)/(.*(swagger).*)$" => "$1/doc/$2",
          "^/(v[^/\?]*)/((css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf))$" => "$1/doc/$2",
          "^/(v[^/\?]*)/(.*(favicon|robots|sitemap).*)$" => "$1/$2",
          "^/(v[^/\?]*)/(.*)$" => "$1/index.php/$2",
          "^/(.+)$" => "v/$1"
        )

    -
      name: papi-dev
      host_header: .dev.jobstreet.com
      document_root: /home/lighttpd/dev/api-root
      additional_config: |
        setenv.add-environment = ("papi_local_domain" => "papi-1-dev.jobstreet.com")

        url.rewrite-once = (
          "^/monitor(.*)" => "v/index.php/monitor$1",
          "^/(v[^/\?]*)/$" => "$1/doc/swagger.html",
          "^/(v[^/\?]*)/(.*(swagger).*)$" => "$1/doc/$2",
          "^/(v[^/\?]*)/((css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf))$" => "$1/doc/$2",
          "^/(v[^/\?]*)/(.*(favicon|robots|sitemap).*)$" => "$1/$2",
          "^/(v[^/\?]*)/(.*)$" => "$1/index.php/$2",
          "^/(.+)$" => "v/$1"
        )

    -
      name: monitor-dev
      host_header: monitor.dev.jobstreet.com
      document_root: /home/lighttpd/monitor-root
      additional_config: |
        url.rewrite-once = ()


    -
      name: dev-temp
      host_header: -dev-temp.jobstreet.com
      document_root: /home/lighttpd/dev/api-root
      additional_config: |
        server.tag = "papi-1-dev"
        setenv.add-environment = ("papi_local_domain" => "papi-1-dev.jobstreet.com")

        url.rewrite-once = (
          "^/monitor(.*)" => "v/index.php/monitor$1",
          "^/(v[^/\?]*)/$" => "$1/doc/swagger.html",
          "^/(v[^/\?]*)/(.*(swagger).*)$" => "$1/doc/$2",
          "^/(v[^/\?]*)/((css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf))$" => "$1/doc/$2",
          "^/(v[^/\?]*)/(.*(favicon|robots|sitemap).*)$" => "$1/$2",
          "^/(v[^/\?]*)/(.*)$" => "$1/index.php/$2",
          "^/(.+)$" => "v/$1"
        )

    -
      name: sookteng custom header
      host_header: sookteng.jobstreet.com
      document_root: /home/JOBST/sookteng.looi/public_html
      additional_config: |
        server.tag = "sookteng"

        url.rewrite-once = (
          "^/monitor(.*)" => "v/index.php/monitor$1",
          "^/(v[^/\?]*)/$" => "$1/doc/swagger.html",
          "^/(v[^/\?]*)/(.*(swagger).*)$" => "$1/doc/$2",
          "^/(v[^/\?]*)/((css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf))$" => "$1/doc/$2",
          "^/(v[^/\?]*)/(.*(favicon|robots|sitemap).*)$" => "$1/$2",
          "^/(v[^/\?]*)/(.*)$" => "$1/index.php/$2",
          "^/(.+)$" => "v/$1"
        )
